import request from '@/utils/request'

// 查询报名信息列表
export function listPInformation(query) {
  return request({
    url: '/system/pInformation/list',
    method: 'get',
    params: query
  })
}
// 查询个人详情信息列表
export function pInformationDetail(query) {
  return request({
    url: '/system/pInformation/pInformationDetail',
    method: 'get',
    params: query
  })
}
export function auditPInformation(data) {
  return request({
    url: '/system/pInformation/audit',
    method: 'post',
    data: data
  })
}

export function palerPInformation(data) {
  return request({
    url: '/system/pInformation/palerList',
    method: 'post',
    data: data
  })
}
// 查询报名信息详细
export function getPInformation(id) {
  return request({
    url: '/system/pInformation/' + id,
    method: 'get'
  })
}

// 新增报名信息
export function addPInformation(data) {
  return request({
    url: '/system/pInformation',
    method: 'post',
    data: data
  })
}

// 修改报名信息
export function updatePInformation(data) {
  return request({
    url: '/system/pInformation',
    method: 'put',
    data: data
  })
}

// 删除报名信息
export function delPInformation(id) {
  return request({
    url: '/system/pInformation/' + id,
    method: 'delete'
  })
}
